(function() {
	var tabs = document.querySelectorAll(".j_tab");
	for(var h = 0; h < tabs.length; h++) {
		settab(tabs[h]);
	}

	function settab(tab) {
		var lis = tab.getElementsByTagName("li");
		for(var i = 0; i < lis.length; i++) {
			(function(indax) {
				lis[i].onmouseover = function() {
					var ys = tab.querySelectorAll(".active");
					if(ys[0]) {
						ys[0].className = '';
					}
					var divs = tab.querySelectorAll(".wu_dir");
					for(var m = 0; m < divs.length; m++) {
						divs[m].style.display = "none";
					}
					divs[indax].style.display = "block";
					this.className = "active";
				}
			})(i)
		}
	}
})()